package main4mycerts

import "github.com/starter-go/application"

func nop(a ... any) {    
}

func registerComponents(cr application.ComponentRegistry) error {
    ac:=&autoRegistrar{}
    ac.init(cr)
    return ac.addAll()
}

type comFactory interface {
    register(cr application.ComponentRegistry) error
}

type autoRegistrar struct {
    cr application.ComponentRegistry
}

func (inst *autoRegistrar) init(cr application.ComponentRegistry) {
	inst.cr = cr
}

func (inst *autoRegistrar) register(factory comFactory) error {
	return factory.register(inst.cr)
}

func (inst*autoRegistrar) addAll() error {

    
    inst.register(&p15d7bdc1cd_icerts_CSRServiceImpl{})
    inst.register(&p15d7bdc1cd_icerts_CertificateDaoImpl{})
    inst.register(&p15d7bdc1cd_icerts_CertificateServiceImpl{})
    inst.register(&p15d7bdc1cd_icerts_CsrDaoImpl{})
    inst.register(&p2d553e6558_ikeypairs_KeyPairDaoImpl{})
    inst.register(&p2d553e6558_ikeypairs_KeyPairServiceImpl{})
    inst.register(&p33b82b8c5b_iblobs_BlobDaoImpl{})
    inst.register(&p33b82b8c5b_iblobs_BlobServiceImpl{})
    inst.register(&p3dca86095a_idomains_DomainDaoImpl{})
    inst.register(&p3dca86095a_idomains_DomainServiceImpl{})
    inst.register(&p5b60e40627_example_Dao1impl{})
    inst.register(&p5b60e40627_example_Dao2impl{})
    inst.register(&p5b60e40627_example_ServiceImpl{})
    inst.register(&p72e7f87b78_iaccounts_DaoImpl{})
    inst.register(&p72e7f87b78_iaccounts_ServiceImpl{})
    inst.register(&p754b1839f2_apiv1_AccountController{})
    inst.register(&p754b1839f2_apiv1_BlobController{})
    inst.register(&p754b1839f2_apiv1_CertificateController{})
    inst.register(&p754b1839f2_apiv1_CsrController{})
    inst.register(&p754b1839f2_apiv1_DomainController{})
    inst.register(&p754b1839f2_apiv1_ExampleController{})
    inst.register(&p754b1839f2_apiv1_KeyPairController{})
    inst.register(&pd7cacb7c4a_database_ThisGroup{})


    return nil
}
